<include file="public@header"/>
<style type="text/css">
    .cardBox {
        width: 250px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #fff;
        padding: 10px;
        font-size: 15px;
        height: 100px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>

</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>工资单</a></li>
        <li><a href="{:url('add')}">新增</a></li>
    </ul>

    <volist name="all" id="po">
        <div class="cardBox" style="margin-bottom: 90px">
            <div class="headerBox" style="background-color: #006fc4;">
                <p>
                    姓名 : {$po.lname}
                </p>

                <p>
                    扣除总额 : {$po.ded}
                </p>
                <p>
                    实付总额 :{$po.pay}
                </p>
            </div>
        </div>
    </volist>

    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>工资发放时间</th>
                <th>姓名</th>
                <th>职务</th>
                <th>应发</th>
                <th>扣除</th>
                <th>实发</th>
                <th>相差</th>

                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
                <tr>
                    <volist name="data" id="v">
                        <tr>
                        <td>{$v.date}</td>
                        <td>{$v.lname}</td>
                        <td>{$v.ltype}</td>
                        <td>{$v.sud}</td>
                        <td>{$v.ded}</td>
                        <td>{$v.pay}</td>
                        <td>{$v.pop}</td>
                        <td>
                            <a class="btn btn-xs btn-primary js-ajax-submit"
                               href="{:url('see',array('id'=>$v['id']))}">查看详情</a>
                            <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                               href="{:url('del',array('id'=>$v['id']))}">{:lang('DELETE')}</a>
                        </td>
                </tr>
                    </volist>
                </tr>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>